package com.book.pojo;

public class Address {

    private Integer id;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    private Integer userId;//核心字段    用户和地址的关系 1对多

    //地址
    private String address;//(省,市)
    //邮编
    private String postal;

    public Integer getUserId() {
        return userId;
    }

    public Address(Integer userId, String address, String postal) {
        this.userId = userId;
        this.address = address;
        this.postal = postal;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }



    public Address(String address, String postal) {
        this.address = address;
        this.postal = postal;
    }

    public Address() {
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPostal() {
        return postal;
    }

    public void setPostal(String postal) {
        this.postal = postal;
    }
}
